package cn.leaf.database.datascope;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 *
 * description: 数据权限查询参数
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-07 10:19:38
 * slogan: There are no two identical leaves in the world.
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DataScope extends HashMap<String, Object> {

	/**
	 * 限制范围的字段名称
	 */
	private String scopeName = "department_id";

	/**
	 * 具体的数据范围
	 */
	private List<Integer> departIds = new ArrayList<>();
}
